package com.xmg.design23.d14_strategy;

/**
 * @Author: mazhongqing
 * @Date: 2021/3/25 13:43
 */
public class Context {
    private Strategy strategy;

    public Strategy getStrategy(){
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void strategyMethod(){
        strategy.strategyMethod();
    }
}
